
import java.text.NumberFormat;
import java.util.Scanner;

public class Thousandth {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        double a = scan.nextDouble();
        transformation(a);
    }

    public static void transformation(double a) {
        NumberFormat c = NumberFormat.getNumberInstance();
        System.out.println(c.format(a));;
    }
}